﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StoreWeb.system.memberGrade
{
    public partial class edit : System.Web.UI.Page
    {
        //BLL.Role role = new BLL.Role();
        BLL.memberGrade memberGrades = new BLL.memberGrade();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hidid.Value = Request.QueryString["id"];
                if (!string.IsNullOrEmpty(hidid.Value))
                {
                    Model.memberGrade ne = memberGrades.GetModel(Convert.ToInt32(hidid.Value));
                    grade.Value = ne.grade;
                    discountrate.Value = ne.discountrate;
                }
            }
        }
    }
}